<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>王者荣耀竞猜管理平台</title>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/themes/icon.css">
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/jquery.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/jquery.easyui.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
<div align="center">
    <form id="ff" method="post" action="/sessionInfo/save">
        <table cellpadding="5">
            <%--<tr>--%>
                <%--<td>所属房间：</td>--%>
                <%--<td><input class="easyui-textbox" type="text" id="fdRoomId" name="fdRoomId"--%>
                           <%--data-options="required:true"/></td>--%>
            <%--</tr>--%>

            <tr>
                <td>所属房间：</td>
                <td><input type="text" id="fdRoomId" name="fdRoomId" class="easyui-combobox" data-options="
                    required:true,
                    valueField: 'fdId',
                    textField: 'fdName',
                    editable:false,
                    url: '/roomInfo/comboList',
                    onSelect:function(record){
                        $('#fdRoomName').val(record.fdName);
                    },
                    onLoadSuccess: function (data) {
                       $('#fdRoomId').combobox('select', data[0].fdId);

                    }"/>
                    <input type="hidden" name="fdRoomName" id="fdRoomName">

                </td>
            </tr>

            <tr>
                <td>当前场次：</td>
                <td><input class="easyui-textbox" type="text" id="fdSessionNum" name="fdSessionNum"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>当前场次A队击杀人数：</td>
                <td><input class="easyui-textbox" type="text" id="fdSingleClanAKillNum" name="fdSingleClanAKillNum"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>当前场次B队击杀人数：</td>
                <td><input class="easyui-textbox" type="text" id="fdSingleClanBKillNum" name="fdSingleClanBKillNum"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>A队单场赔率：</td>
                <td><input class="easyui-textbox" type="text" id="fdSingleAScale" name="fdSingleAScale"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>B队单场偏赔率：</td>
                <td><input class="easyui-textbox" type="text" id="fdSingleBScale" name="fdSingleBScale"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>大小单双单场赔率：</td>
                <td><input class="easyui-textbox" type="text" id="fdSingleSizeScale" name="fdSingleSizeScale"
                           data-options="required:true"/></td>
            </tr>
            <tr>
                <td>特码单场赔率：</td>
                <td><input class="easyui-textbox" type="text" id="fdSingleSpecialScale" name="fdSingleSpecialScale"
                           data-options="required:true"/></td>
            </tr>

            <%--<tr>--%>
                <%--<td>-1:a胜,0:比赛中,1b胜当前场次比赛结果：</td>--%>
                <%--<td><input class="easyui-textbox" type="text" id="fdSingleResult" name="fdSingleResult"--%>
                           <%--data-options="required:true"/></td>--%>
            <%--</tr>--%>

            <tr>
                <td>比赛结果：</td>
                <td><input type="radio" name="fdSingleResult" data-options="required:true"
                           value="-1"/>A方胜
                    <input type="radio" name="fdSingleResult" data-options="required:true"
                           value="1"/>B方胜
                    <input type="radio" name="fdSingleResult" data-options="required:true"
                           value="0" />比赛中
                    <input type="radio" name="fdSingleResult" data-options="required:true"
                           value="-2" checked/>未开始
                </td>
            </tr>

            <tr>
                <td>当前场次预计开盘时间：</td>
                <td>
                    <%--<input class="easyui-textbox" type="text" id="fdSingleStartTime" name="fdSingleStartTime"--%>
                           <%--data-options="required:true"/>--%>
                        <input class="easyui-datetimebox" name="fdSingleStartTime"
                               data-options="required:true,showSeconds:true,editable:false" value=""/>

                </td>
            </tr>
            <tr>
                <td>当前场次预计封盘时间：</td>
                <td>
                    <%--<input class="easyui-textbox" type="text" id="fdSingleEndTime" name="fdSingleEndTime"--%>
                           <%--data-options="required:true"/>--%>
                    <input class="easyui-datetimebox" name="fdSingleEndTime"
                           data-options="required:true,showSeconds:true,editable:false" value=""/>

                </td>
            </tr>

                <input type="hidden" value="0" id="fdSingleIsSettle" name="fdSingleIsSettle">
        </table>
    </form>
    <div style="text-align:center;padding:5px">
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提交</a>
        <a href="javascript:void(0)" style="margin-left: 20px" class="easyui-linkbutton" onclick="clearForm()">重置</a>
    </div>
</div>
</body>
<script src="${pageContext.request.contextPath}/static/pages/sessionInfo/add.js"></script>
</html>